package cn.cvs.service.impl;

import cn.cvs.dao.RoleMapper;
import cn.cvs.pojo.Role;
import cn.cvs.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper roleMapper;
    @Override
    public List<Role> list() {
        return roleMapper.list();
    }

    @Override
    public int add(Role role) {
        return roleMapper.add(role);
    }

    @Override
    public Role getRoleById(String id) {
        return roleMapper.getRoleById(id);
    }
}
